<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
	<script src="/admin/public/html5shiv.min.js"></script>
	<script src="/admin/public/respond.min.js"></script>
<![endif]-->
<!-- Bootstrap core CSS -->
    	<link href="../newTemplate/css/bootstrap.min.css" rel="stylesheet"/>
    	<!-- <link href="../newTemplate/css/animate.css" rel="stylesheet"/>页面滑动 -->	
	    <link href="../newTemplate/css/inspinia.css" rel="stylesheet"/>
	    <link rel="stylesheet" type="text/css" href="${request.getContext }/admin/css/xcConfirm.css"/>
	    <style>
	    	.icheckbox_square-green{
	    		float:left;
	    	}
	    	.form-horizontal input,.form-horizontal select{
	    		margin-left:0;
	    	}
	    	
	    	#wrapper {
			    width: 100%;
			    height: 100%;
			}
	    </style>
<title>信息管理系统</title>
</head>
<body>
	<div id="wrapper" class="container">
		<div class="wrapper wrapper-content animated fadeInRight">
			<h3>
				<strong>用户协议</strong>
			</h3>
			<div class="right_box">
				<div style="border: none; box-shadow: none;" class="right_one row">
					<div class="col-md-12 col-sm-12 col-xs-12" style="float: left;">
						<div class="form-horizontal">
							<div class="tabs-container">
								<div class="tab-content">
									<form action="" method="get" id="yhxy">
										<div id="tab-1" class="tab-pane active">
											<div class="panel-body">
												<div class="form-group">
													<label class="col-lg-2 control-label"><span
														style="color: #cc5965;"></span>标题：</label>
													<div class="col-lg-9">
														<input class="form-control" type="text" data-val="true" style="width: 800px;"
															name="title" value="${title }" /><span
															style="float: left; margin: 8px;"><span
															style="color: red; font-weight: bold; font-size: 14px"></span></span>
														<span class="field-validation-valid"
															data-valmsg-for="Title" data-valmsg-replace="true"></span>
													</div>
												</div>
												<div class="form-group">
													<label class="col-lg-2 control-label"><span style="color:#cc5965;">*</span>内容:</label>
													<div class="col-lg-9">
														<div>
														<script id="editor" type="text/plain" name="agreement" id="agreement" style="width:800px;height:500px;">${agreement }</script>
														</div>
													</div>
												</div>
											</div>
										</div>
								</div>
								<div class="col-sm-4 col-sm-offset-2">
									<input type="button" onclick="save();" value="修改" id="saveBtn"
										style="width: 105px; height: 34px;" class="btn btn-success" />
								</div>
								</form>
							</div>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<input type="hidden" id="Content" name="Content" />
				</div>
			</div>
		</div>
	</div>
	</div>
	<script src="../newTemplate/js/jquery-2.1.1.js"></script>
	<script src="../newTemplate/js/bootstrap.min.js"></script>
	<script src="../newTemplate/js/plugins/pace/pace.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="/admin/js/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8" src="/admin/js/ueditor.all.js"> </script>
	<script type="text/javascript" charset="utf-8" src="/admin/js/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" src="/admin/js/ueditor.all.min.js"></script>
	<script src="${request.getContext }/admin/js/xcConfirm.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var ue=UE.getEditor('editor');

function save(){
	$.ajax({
        type:"post",
        data:$("#yhxy").serialize(),
        dataType:"json",
        url:"/admin/system/upUserXy",
        success:function(data){
        	if (data.success) {
				alert(data.msg);
			}else{
				alert(data.msg);
			}
        },
        error:function(data){
        	alert("未知的错误发生了！");
        }
    });
}
</script>
</body>
</html>
